//
//  CellForCook.m
//  MY Project For Sport
//
//  Created by admin on 16/2/18.
//  Copyright © 2016年 dilo. All rights reserved.
//

#import "CellForCook.h"
#import <DKNightVersion.h>

#define WEIGHTT [UIScreen mainScreen].bounds.size.width / 375
#define HEIGHTT [UIScreen mainScreen].bounds.size.height / 667


@interface CellForCook ()

@end


@implementation CellForCook
-(void)dealloc {

    [_labelForTitle release];
    [_labelForNumber release];
    
    [super dealloc];

}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.contentView.dk_backgroundColorPicker = DKColorWithRGB (0xffffff, 0x343434);
        [self createSubView];
        
    }

    return self;

}

- (void)createSubView {

    self.labelForTitle = [[UILabel alloc] init];
    [self.contentView addSubview:self.labelForTitle];
    [_labelForTitle release];
    
    self.labelForNumber = [[UILabel alloc] init];
    [self.contentView addSubview:self.labelForNumber];
    [_labelForNumber release];

}

- (void)layoutSubviews {

    [super layoutSubviews];
    
    self.labelForTitle.frame = CGRectMake(10 * WEIGHTT, 20 * HEIGHTT, self.contentView.frame.size.width / 3, self.contentView.frame.size.height - 40 * HEIGHTT);
    
    self.labelForTitle.dk_textColorPicker = DKColorWithColors([UIColor blackColor], [UIColor whiteColor]);

    self.labelForNumber.frame = CGRectMake(self.contentView.frame.size.width / 10 * 8, 20, self.contentView.frame.size.width / 10 * 3, self.contentView.frame.size.height - 40 * HEIGHTT);
    self.labelForNumber.dk_textColorPicker = DKColorWithColors([UIColor blackColor], [UIColor whiteColor]);


}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
